const mongoose = require("mongoose")

// 创建分类schema

const userSchema = new mongoose.Schema({
    userName: {
        type: String,
        required: true
    },
    pwd: {
        type: String,
        required: true
    }
})

// 创建cateModel
const userModel = mongoose.model("qf_users", userSchema);

// 查找用户接口
const findUser = (params={})=> userModel.findOne(params)

module.exports = {
    findUser
}